package com.boat.sample.ddd.api.errorcode;

import com.boat.framework.base.exception.ErrorCode;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum DddErrCode implements ErrorCode {
	USER_ALREADY_EXISTS("D10B01", "用户已存在:%s"),
	USER_NOT_FOUND("D10B01", "用户名或密码错误"),
	;

	private String code;
	private String message;

	@Override
	public String getCode() {
		return code;
	}

	@Override
	public String getMessage() {
		return message;
	}
}
